note makeNote(int x, float y, int z)
{
	note N;
	N.pitch = x;
	N.duration = y;
	N.intensity = z;
	
	return N;
}

void main()
{
	part P;
	staff S;
	chord C;
	chord G;
	chord A;
	chord F;
	chord E;
	chord D;
	note c;
	note g;
	note f;
	note e;
	note d;
	note a;
	note longg;
	note longc;
	chord longA;
	chord longC;
	
	
	P.bpm = 100;
	P.beatsig = 0.25;
	
	S.instrument = 0;

	
	c = makeNote(C4, 0.25, 100);
	g = makeNote(G4, 0.25, 100);
	a = makeNote(A4, 0.25, 100);
	f = makeNote(F4, 0.25, 100);
	e = makeNote(E4, 0.25, 100);
	d = makeNote(D4, 0.25, 100);
	
	add(C , c);
	add(G , g);
	add(A , a);
	
	longg = makeNote(G4, 0.5, 100);
	longc = makeNote(C4, 0.5, 100);

	add(S, c);
	add(S, c);
	add(S, g);
	add(S, g);
	add(S, a);
	add(S, a);
	
	add(S, longg);
	add(S, f);
	add(S, f);
	add(S, e);
	add(S, e);
	add(S, d);
	add(S, d);
	add(S, longc);	
	
	add(P, S);

	play(P);

}